#ifndef SHEBEI_H
#define SHEBEI_H

#include <QWidget>
#include <QDebug>
#include "mqtt/qmqtt.h"

#include <QTextStream> // 文本流类
#include <QMessageBox>
#include <Qstring>
#include <QPoint>

#include <QJsonDocument>
#include <QJsonValue>
#include <QJsonObject>
#include <QByteArray>
#include <QJsonArray>

#include "set.h"

namespace Ui {
class shebei;
}

class shebei : public QWidget
{
    Q_OBJECT

public:
    explicit shebei(QWidget *parent = 0);
    ~shebei();

    void controlup(QMQTT::Message message);
//    void dataup(QMQTT::Message message);

private:
    Ui::shebei *ui;

signals:
    void shiyanshi_signal(int);


private slots:
    void dataup(QByteArray);

    void Push_Door_Slot();
    void Push_Fan_Slot();
    void Push_Rev_Slot();
    void Push_Temp_Slot();
    void Push_Ekey_Slot();
    void Push_Shuaxin_Slot();
    void Push_fdj_Slot();
    void shiyanshi_Slot(int);

    //mqtt
    // void doDataReceived(QMQTT::Message message);
    // void doSubscribed(const QString& topic, const quint8 qos);
    // void doConnected();  //MQTT
};

#endif // SHEBEI_H
